﻿@using System.Web.UI.WebControls
@model STX.Admin.Models.BizSupplier.AddModel
@{
    ViewBag.Title = "Add";
    Layout = null;
    var i = 0;
}

<form class="pageForm addpage" action="@Url.Action("saveadd")" method="post">
    <div style=" height:100%; width:100%; overflow:hidden" class="verticalSplitContainer">
        <div class="pageFormContent" ratio="*">

            <table style="width:100%">
                <tr>
                    <td width="15%">地方：</td>
                    <td width="85%" colspan="3">@Html.DropDownList("AreaId", Model.AreaSelectList)</td>
                </tr>
                <tr>
                    <td width="15%"> 供应商名称：</td>
                    <td width="35%"> <input type="text" value="" size="30" name="Name" class="textInput" /></td>
                    <td width="15%">联系人：</td>
                    <td width="35%"><input name="Contacter" class="textInput" type="text" size="30" value="" alt=""/></td>
                </tr>
                <tr>
                    <td>电话：</td>
                    <td><input name="Tel" class="textInput" type="text" size="30" value="" alt=""/></td>
                    <td>Email：</td>
                    <td><input name="EMail" class="textInput" type="text" size="30" value="" alt=""/></td>
                </tr>
                <tr>
                    <td>是否审核：</td>
                    <td>@(Html.DropDownListFromEnum<STX.Domain.BizSupplier.SupplierAuditingEnum>(-1,"Auditing"))</td>
                </tr>
            </table>
            @*<br/>
            <h4 style=" background: #b0e0e6; padding: 6px;">选择物料 </h4>
            <table style="width:100%" id="selectMaterial">
                <tr>
                    <td style="width:20%">物料名称</td>
                    <td style="width:10%">编号</td>
                    <td style="width:50%">具体要求</td>
                    <td style="width:10%">单位</td>
                    <td style="width:10%">操作</td>
                </tr>
                @foreach (var item in Model.QuotePriceTemplates)
                {
                    var trbg = i % 2 == 0 ? "#ffdead" : "palegreen";
                    <tr style=" background:@trbg">
                        <td style="width:20%">@item.Name</td>
                        <td style="width:10%">@item.Code</td>
                        <td style="width:50%">@item.Required</td>
                        <td style="width:10%">@item.Unit</td>
                        <td style="width:10%"><input type="checkbox" name="PriceTemplatesAry" value="@item.Id" /></td>
                    </tr>
                    i++;
                }
            </table>*@
        </div>

        <div class="formBar" ratio="#30">
            <ul>
                <div class="simplebutton"><div class="r"><button type="button" class="submit">保存</button></div></div>
            </ul>
        </div>
    </div>
</form>

